#include "myChannel.h"

MyChannel::MyChannel(QObject *parent)
    :QObject(parent)
{
}
void MyChannel::MoveToEast(QWebEnginePage *page)
{
	page->runJavaScript(QString("MoveToEastCity();"));
}
void MyChannel::StopMoveToEast(QWebEnginePage *page)
{
	page->runJavaScript(QString("StopMoveToEastCity();"));
}

void MyChannel::PlaneMoveToEast(QWebEnginePage *page)
{
    page->runJavaScript(QString("PlaneMoveToEastCity();"));
}
void MyChannel::PlaneStopMoveToEast(QWebEnginePage *page)
{
    page->runJavaScript(QString("PlaneStopMoveToEastCity();"));
}

